package team.seekers.hula.user.userData.entity.dao;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author hbc
 * @since 2023-01-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="user_data", description="用户数据表")
@TableName(value = "user_data")
public class UserDataDO implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户openID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "用户hula分等级")
    private Double hulaCoin;

    @ApiModelProperty(value = "用户hula分等级")
    private Double hulaScore;

    @ApiModelProperty(value = "用户hula分等级")
    private Integer hulaLevel;

    @ApiModelProperty(value = "用户创作数")
    private Integer createCount;

    @ApiModelProperty(value = "用户粉丝数")
    private Integer followedCount;

    @ApiModelProperty(value = "用户关注数")
    private Integer followCount;

    @ApiModelProperty(value = "用户的收藏数")
    private Integer collectCount;

    @ApiModelProperty(value = "用户的常驻数")
    private Integer fixedCount;




    @TableLogic
    private Integer isDeleted;

    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
